import { createRouter, createWebHistory } from 'vue-router'
import Home from '@/pages/Home.vue'
import Bill from '@/pages/Bill.vue'
import ReportForms from '@/pages/ReportForms.vue'
import Mine from '@/pages/Mine.vue'
import Login from '@/pages/User/Login.vue'
import Register from '@/pages/User/Register.vue'
import OneStroke from '@/pages/OneStroke/OneStroke.vue'
import CategorySet from '@/pages/Category/CategorySet.vue'
import EditCategory from '@/pages/Category/EditCategory.vue'
import SavingsPlan from '@/pages/SavingsPlan/SavingsPlan.vue'
import AddSavingsPlan from '@/pages/SavingsPlan/AddSavingsPlan.vue'
import BudgetSetting from '@/pages/BudgetSetting/BudgetSetting.vue'
import ShoppingList from '@/pages/ShoppingList/ShoppingList.vue'
import AddShoppingList from '@/pages/ShoppingList/AddShoppingList.vue'
import ShoppingListDetail from '@/pages/ShoppingList/ShoppingListDetail.vue'
import AddGoods from '@/pages/ShoppingList/AddGoods.vue'
import AnnualReport from '@/pages/AnnualReport/AnnualReport.vue'

const router = createRouter({
	history: createWebHistory(),
	routes: [
		{
			path: '/',
			redirect: '/home',
			meta: {
				hideTabBar: true
			}
		},{
			path: '/home',
			component: Home,
			meta: {
				hideTabBar: true
			}
		},{
			path: '/bill',
			component: Bill,
			meta: {
				hideTabBar: true
			}
		},{
			path: '/reportForms',
			component: ReportForms,
			meta: {
				hideTabBar: true
			}
		},{
			path: '/mine',
			component: Mine,
			meta: {
				hideTabBar: true
			}
		},{
			path: '/login',
			component: Login,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/register',
			component: Register,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/oneStroke',
			component: OneStroke,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/categorySet',
			component: CategorySet,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/editCategory',
			component: EditCategory,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/savingsPlan',
			component: SavingsPlan,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/addSavingsPlan',
			component: AddSavingsPlan,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/budgetSetting',
			component: BudgetSetting,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/shoppingList',
			component: ShoppingList,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/addShoppingList',
			component: AddShoppingList,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/shoppingListDetail',
			component: ShoppingListDetail,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/addGoods',
			component: AddGoods,
			meta: {
				hideTabBar: false
			}
		},{
			path: '/annualReport',
			component: AnnualReport,
			meta: {
				hideTabBar: false
			}
		}
	]
})
export default router